#
#  SoundNotification.rb
#  SoundNotification
#
#  Created by Dan Walters on 7/5/07.
#  Copyright (c) 2007 __MyCompanyName__. All rights reserved.
#

require 'osx/cocoa'

OSX.ns_import :SoundNotification

class OSX::SoundNotification < OSX::NSObject

  class << self

	def logger
	  @@logger
	end

	def logger=(logger)
	  @@logger = logger
	end

	def pluginWillUnload
	end

  end

  def newMessagesReceived_fullCount(messages, fullCount)
	logger.info("newMessagesReceived: fullCount=%d", fullCount)
	OSX.NSLog messages.description
  end

end
